<?php
require 'simple_html_dom.php';
$str = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head profile="http://purl.org/NET/erdf/profile">
        <title>PHP: Strings - Manual</title>
        <style type="text/css" media="all">
            @import url("http://static.php.net/www.php.net/styles/site.css");
            @import url("http://static.php.net/www.php.net/styles/phpnet.css");
        </style>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link rel="shortcut icon" href="http://static.php.net/www.php.net/favicon.ico" />
        <link rel="contents" href="index.php" />
        <link rel="index" href="language.types.php" />
        <link rel="prev" href="language.types.float.php" />
    </head>
    <body>
        <ul id="test" class="test" rel="hai">
            <li>keke</li>
            <li>tete</li>
            <li>ii</li>
            <li>uu</li>
        </ul>
    </body>
</html>
EOD;

$node = new simple_html_dom($str);
echo memory_get_usage();